<!DOCTYPE html>
<html lang="{$language}">
<head>
<meta charset="UTF-8"/>
<meta http-equiv="Cache-Control" content="no-transform"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
{php}
if($zbp->Config('plain')->seo == '1'){
	if($zbp->Config('plain')->separator){
		$separator = $zbp->Config('plain')->separator;
	}else{
		$separator = '_';
	}
	if($type =='index'){
		if($page == '1'){
			if($zbp->Config('plain')->title){
				$topTitle = $zbp->Config('plain')->title;
			}else{
				$topTitle = $zbp->name.$separator.$zbp->subname;
			}
		}else{
			if($zbp->Config('plain')->title){
				$topTitle = $zbp->Config('plain')->title.$separator.'第'.$page.'页';
			}else{
				$topTitle = $zbp->name.$separator.'第'.$page.'页'.$separator.$zbp->subname;
			}			
		}
		$keywords = $zbp->Config('plain')->keywords;
		$description = $zbp->Config('plain')->description;
	}elseif($type == 'category'){
		if ($page=='1') {
            $topTitle = $zbp->title.$separator.$zbp->name;
        } else {
            $topTitle = $zbp->title.$separator.'第'.$page.'页'.$separator.$zbp->name;
        }
		$keywords = $category->Name;
		$description = $category->Intro;      
	}elseif($type == 'article'){
		$topTitle = $article->Title.$separator.$article->Category->Name.$separator.$zbp->name;		
        $aryTags = array();
        foreach($article->Tags as $key){
            $aryTags[] = $key->Name;
        }
        if(count($aryTags)>0){
            $keywords = implode(',',$aryTags);
        } else {
            $keywords = $zbp->name.','.$zbp->Config('plain')->keywords;
        }
		$description = plain_intro($article,1,80,'');
	}elseif($type == 'page'){
		$topTitle = $article->Title.$separator.$zbp->name;		
        $keywords = $article->Title . ',' . $zbp->Config('plain')->keywords;
		$description = plain_intro($article,1,80,'');
	}else {
        if($page>'1') {
            $topTitle = $zbp->title.$separator.'第'.$page.'页'.$separator.$zbp->name;
        } else {
            $topTitle = $zbp->title.$separator.$zbp->name;
        }
		$keywords = $zbp->Config('plain')->keywords;
        $description = $zbp->Config('plain')->description;        
    }
}
{/php}
<title>{if $zbp->Config('plain')->seo == '1'}{$topTitle}{else}{$name}-{$title}{/if}</title>
{if $zbp->Config('plain')->seo == '1'}
<meta name="keywords" content="{$keywords}" />
<meta name="description" content="{$description}" />
{/if}
<link rel="stylesheet" type="text/css" href="{$host}zb_users/theme/{$theme}/style/style.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="{$host}zb_users/theme/{$theme}/style/css/font-awesome.min.css" media="screen"/>
<!--[if IE 7]>
<link rel="stylesheet" href="{$host}zb_users/theme/{$theme}/style/css/font-awesome-ie7.min.css">
<![endif]-->
<script src="{$host}zb_system/script/jquery-2.2.4.min.js" type="text/javascript"></script>
<script src="{$host}zb_system/script/zblogphp.js" type="text/javascript"></script>
<script src="{$host}zb_system/script/c_html_js_add.php" type="text/javascript"></script>
<!--[if lt IE 9]>
<script type="text/javascript" src="{$host}zb_users/theme/{$theme}/script/html5shiv.js"></script>
<script type="text/javascript" src="{$host}zb_users/theme/{$theme}/script/respond.min.js"></script>
<![endif]-->
<script type="text/javascript" src="{$host}zb_users/theme/{$theme}/script/leonhere.js"></script>
{$header}
{if $type=='index' && $page=='1'}
<link rel="alternate" type="application/rss+xml" href="{$feedurl}" title="{$name}" />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="{$host}zb_system/xml-rpc/?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="{$host}zb_system/xml-rpc/wlwmanifest.xml" />
{/if}
</head>
<body>
<header id="header">
	{if $type == 'article' || $type == 'page'}
	<div id="logo">
		<a href="{$host}" title="{$name}">{$name}</a>
	</div>
	{else}
	<h1 id="logo">
		<a href="{$host}" title="{$name}">{$name}</a>
	</h1>
	{/if}
	<div id="searchForm">
		<div class="form">
			<form name="search" method="post" action="{$host}zb_system/cmd.php?act=search">
				<input type="text" name="q" id="edtSearch" class="s" value="" placeholder="请输入搜索关键词"/>
				<input type="submit" name="submit" id="btnPost" class="submit" value="搜索"/>
			</form>
		</div>
	</div>
	<div id="topBtn">
		<span id="schbtn">
			<i class="icon-search"></i>
		</span>
		<span id="navbtn">
			<i class="icon-reorder"></i>
		</span>
	</div>
	<div class="searchbtn"></div>
	
	<div class="clear"></div>
</header>
<div id="blank"></div>
<nav id="nav" role="navigation">
	<ul>
		{module:navbar}
	</ul>
</nav>